package com.zlzxm.studentscreen.ui.activity.manager;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;

import com.zlzxm.studentscreen.util.ToastyUtil;


/**
 * CREATE BY zlzxm ON 2021/12/23
 */
public abstract class BaseActivity extends AppCompatActivity implements IPageBase {

    public abstract int loadRootView();


    protected void warningToast(String msg){

        ToastyUtil.warningToast(this,msg);
    }


    protected void succeedToast(String msg){

        ToastyUtil.succeedToast(this,msg);
    }

    protected void errorToast(String msg){

        ToastyUtil.errorToast(this,msg);
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView( loadRootView());
        initView();
        initClickListener();
        initData();
    }

    @Override
    protected void onResume() {
        super.onResume();


    }

    @Override
    protected void onPause() {
        super.onPause();

    }

    @Override
    protected void onStop() {
        super.onStop();

    }


}
